package com.example.bloodbankapplication.mailsender;

import android.os.AsyncTask;
import android.util.Log;

public class MailSender extends AsyncTask<String, Void, Void> {
	
	@Override
	protected Void doInBackground(String... params) {
		try {
			String message =params[0];
			StringBuffer sb= new StringBuffer();
			sb.append("csnarasimharaju@gmail.com").append(",").append("android.bloodbank@gmail.com");                                     
			GMailSender sender = new GMailSender("android.bloodbank@gmail.com",                                                                                
					"bloodbank@123");                                                                           
			sender.sendMail("Exception", message, "MeterCor", sb.toString());
		} catch (Exception e) {
			Log.e("error", e.getMessage(), e);                          
		}
		return null;
	}

	@Override
	protected void onPostExecute(Void result) {
	}

	@Override
	protected void onPreExecute() {
	}

	@Override
	protected void onProgressUpdate(Void... values) {
	}

	


}
